<template>
  <div class="main-system">
    <h1>欢迎来到主系统页面</h1>
    <div class="grid-container">
      <router-link to="/role-management" class="grid-item">角色管理</router-link>
      <router-link to="/user-management" class="grid-item">用户管理</router-link>
      <router-link to="/resource-management" class="grid-item">资源管理</router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MainSystem'
};
</script>

<style scoped>
.main-system {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
}

h1 {
  margin-bottom: 20px;
}

.grid-container {
  display: flex;
  gap: 20px;
}

.grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 100px;
  background-color: #f0f0f0;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: background-color 0.3s;
}

.grid-item:hover {
  background-color: #e0e0e0;
}
</style>
